You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TVecInt Class > TVecInt Methods > Concat Method > TVecInt.Concat Method ([In] TVecInt[])
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TVecInt.Concat Method ([In] TVecInt[])

Concatenates an array of TVecInt objects.

Syntax
C#
Visual Basic
public TVecInt Concat([In] TVecInt[] Src);

Concatenates an array of TVecInt objects. The method copies the contents of all TVecInt objects from the Src array to the calling object. The Length and TMtxVec.ComplexComplex properties of the calling vector are set implicitly. An exception is raised, if Complex properties of TVecInt objects do not match.

using Dew.Math; using Dew.Math.Units; namespace Dew.Examples { void Example() { TVecInt a,b,c,d; MtxVec.CreateIt(out a, out b, out c, out d); try { a.SetIt(new int[] {1,2,3}); b.Copy(a); c.Concat([a,b]); // c = [1,2,3,1,2,3] d.Size(10); d.SetZero(0,4); d.Concat(4,[c]); // d = [0,0,0,0,1,2,3,1,2,3] } finally { MtxVec.FreeIt(ref a, ref b, ref c, ref d); } } }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!